import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'

const routes = [
  { path: '/', component: () => import('@/views/Home.vue') },
  { path: '/cityList', component: () => import('@/views/CityList.vue') },
  { path: '/category', component: () => import('@/views/Category.vue') },
  { path: '/search', component: () => import('@/views/Search.vue') },
  { path: '/show-tour-detail', component: () => import('@/views/ShowTourDetail.vue') },
  { path: '/tour-list', component: () => import('@/views/TourList.vue') },
  { path: '/show-detail', component: () => import('@/views/ShowDetail.vue') },
  { path: '/pick-seat', component: () => import('@/views/PickSeat.vue') },
  { path: '/transfer', component: () => import('@/views/Transfer.vue') },
  { path: '/transfer-detail', component: () => import('@/views/TransferDetail.vue') },
  { path: '/search_transfer', component: () => import('@/views/SearchTransfer.vue') },
]

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes,
})

export default router
